package com.syeet.gulimall.product.dao;

import com.syeet.gulimall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.syeet.gulimall.product.vo.SkuItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author xhl
 * @email 119495@qq.com
 * @date 2022-04-30 10:16:15
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    List<SkuItemVo.SpuItemAttrGroupVO> getAllGroupAndAttrBySpuId(@Param("spuId") Long spuId,
                                                                 @Param("catalogId") Long catalogId);


}
